//this is a module that consolidates output data W
//Last modified by yangjao at 2021/5/10

module W_out(
    input wire select,
    input wire[31:0] data_in1,
    input wire[31:0] data_in2,
    input wire[31:0] data_in3,
    input wire[31:0] data_in4,

    output wire[31:0] W_i,
    output wire[31:0] W_i_4,
    output wire[31:0] W_j_7,
    output wire[31:0] W_j_16 
);

assign W_j_7 = data_in3;
assign W_j_16 = data_in4;
assign W_i_4 = data_in1;

assign W_i = select ? data_in2 : data_in1;

endmodule